package com.mall.shopping.converter;

import com.mall.shopping.dal.entitys.Panel;
import com.mall.shopping.dto.PanelDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @User: Yr
 * @Date: 2021/12/13
 * @Description:
 */

@Mapper(componentModel = "spring")
public interface PanelConverter {


    @Mappings({})
    PanelDto panel2Dto(Panel panel);

    List<PanelDto> panels2Dto(List<Panel> panels);
}
